Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

instrumentation/kafka: fix handling consumer iteration if transaction not sampled #2075

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

xrmx
Copy link
Member

@xrmx xrmx commented Jul 1, 2024

What does this pull request do?

Handle the case where if the transaction is not sampled capture_span will return None instead of a span.
While at it fix handling of checking for KAFKA_HOST in tests.

Related issues

Closes #2073

… not sampled

Handle the case where if the transaction is not sampled capture_span
will return None instead of span.
While at it fix handling of checking for KAFKA_HOST in tests.

Fix elastic#2073
@xrmx xrmx force-pushed the fix-kafka-attributeerror branch from 1456d47 to 0b25489 Compare July 1, 2024 09:11
@xrmx xrmx marked this pull request as ready for review July 1, 2024 09:22
@xrmx xrmx changed the title WIP add test for cosumer stop itjeration not sampled instrumentation/kafka: fix handling consumer iteration if transaction not sampled Jul 1, 2024
@xrmx xrmx requested a review from basepi July 1, 2024 09:23
@xrmx xrmx merged commit c5b6e15 into elastic:main Jul 9, 2024
90 checks passed
xrmx added a commit to xrmx/apm-agent-python that referenced this pull request Aug 19, 2024
… not sampled (elastic#2075)

Handle the case where if the transaction is not sampled capture_span
will return None instead of span.
While at it fix handling of checking for KAFKA_HOST in tests.

Fix elastic#2073
xrmx added a commit that referenced this pull request Aug 19, 2024
… not sampled (#2075)

Handle the case where if the transaction is not sampled capture_span
will return None instead of span.
While at it fix handling of checking for KAFKA_HOST in tests.

Fix #2073
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

capture_span return None, which is not handled correctly
2 participants